package pers.sms.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import pers.sms.dao.ClockingInRecordMapper;
import pers.sms.bean.ClockingInRecord;
import pers.sms.service.ClockingInRecordService;

import java.util.List;

/**
 * @Author ：liaochuangang
 * @Date ：2022/4/28 9:55
 * @History ：
 * @return ：$return
 */
@Service
public class ClockingInRecordServiceImpl implements ClockingInRecordService {

    @Resource
    private ClockingInRecordMapper clockingInRecordMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return clockingInRecordMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(ClockingInRecord record) {
        return clockingInRecordMapper.insert(record);
    }

    @Override
    public int insertSelective(ClockingInRecord record) {
        return clockingInRecordMapper.insertSelective(record);
    }

    @Override
    public ClockingInRecord selectByPrimaryKey(Long id) {
        return clockingInRecordMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(ClockingInRecord record) {
        return clockingInRecordMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(ClockingInRecord record) {
        return clockingInRecordMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<ClockingInRecord> selectList() {
        return clockingInRecordMapper.selectList();
    }

    @Override
    public List<ClockingInRecord> getStudentClockingIn(ClockingInRecord clockingInRecord) {
        return clockingInRecordMapper.getStudentClockingIn(clockingInRecord);
    }

    @Override
    public Integer deleteById(Long[] ids) {
        int result = clockingInRecordMapper.deleteById(ids);
        return result;
    }
}



